﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace X22.Consul.Extension
{
    public class ServiceDiscoveryOption
    {
        /// <summary>
        /// 调度方式
        /// </summary>
        public Dispatcher Dispatcher { get; set; }
        /// <summary>
        /// http
        /// </summary>
        public string ServiceHead { get; set; } = "http";
        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; }

        /// <summary>
        /// Consul 地址 默认：http://localhost:8500/
        /// </summary>
        public string ConsulAddress { get; set; } = "http://localhost:8500/";
    }
    /// <summary>
    /// 调度方式
    /// </summary>
    public enum Dispatcher
    {
        /// <summary>
        /// 平均调度
        /// </summary>
        AverageDispatcher = 1,
    }
}
